package team.you.ticket.service;

import team.you.ticket.pojo.Result;
import team.you.ticket.pojo.TrainNum;

import java.util.Date;

public interface TrainNumService {
    Result getAllTrainNums(Integer page, Integer limit);

    Result add(TrainNum trainNum);

    Result getCarId();

    Result del(String id);

    Result delete(String[] ids);

    Result update(String id, String value, String field);
    //按用户输入查询车次
    Result getAll(String starSite, String endSite, Date time,Integer page, Integer limit);

    Result selectByLike(String value, String type, Integer page, Integer limit);

    Result selectByTime(String time, Integer page, Integer limit);
}
